package one.stand.controller;

import one.stand.model.ResultModel;
import one.stand.request.SubRequest;
import one.stand.request.live.LiveRequest;
import one.stand.response.SubscriptionNewResponse;
import one.stand.response.live.LiveResponse;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author luoyang
 * @date 2020/5/19 14:11
 */
@RestController
@RequestMapping("live")
public class LiveController extends BaseController{


    /**
     * 获取直播房间
     * @param request
     * @return
     */
    @PostMapping("queryLiveList")
    public ResultModel<LiveResponse> queryLiveList(@RequestBody LiveRequest request){
        return liveService.queryLiveList(request);
    }
}
